<?php
include_once 'app/until/GFW_database.php';

class Db_user_page_access extends Model_Db_Core {

	private $con = null;
	private $username;
	private $User;

	function __construct(){

	}

  /*  public function getModulPage($user_id,$modul_id){		
		$filter  = array('user_id'=> $user_id,'modul_nr'=> $modul_id);
	    $select  = array();
	    
	    parent::getSQLResult(__CLASS__,$filter,$select);
	    $this->page = parent::result(1);

	    return $this->page;
	}*/
	public function getAccessbyModul($page_id){	
		$sql = "Select u.username, u.id from user_page_access usa, user u where usa.page_id = $page_id and usa.user_id = u.id ";
		
		parent::setSqlManuel($sql);
	    $this->User = parent::result();
	    		
		return $this->User;
	}
}

?>